<template>
    <div>
        <el-container>
            <el-header>联系我们</el-header>
            <el-main>
                <div style="display: flex">
                    <div style="width: 100px; font-weight: bold; text-align: right;">手机号：</div>
                    <div>
                        {{ contacts_info.contacts_mobile ? contacts_info.contacts_mobile : '' }}
                    </div>
                </div>
                <div style="display: flex; padding-top: 20px">
                    <div style="width: 100px; font-weight: bold; text-align: right;">QQ：</div>
                    <div>
                        {{ contacts_info.contacts_qq ? contacts_info.contacts_qq : '' }}
                    </div>
                </div>
                <div style="display: flex; padding-top: 20px">
                    <div style="width: 100px; font-weight: bold; text-align: right">企业微信：</div>
                    <div>
                        <img style="width: 150px; height: 150px" :src="contacts_info.contacts_qw ? asset(contacts_info.contacts_qw) : ''" />
                    </div>
                </div>
                <div style="display: flex; padding-top: 20px">
                    <div style="width: 100px; font-weight: bold; text-align: right">官方公众号：</div>
                    <div>
                        <img style="width: 150px; height: 150px" :src="contacts_info.contacts_mp ? asset(contacts_info.contacts_mp) : ''" />
                    </div>
                </div>
            </el-main>
        </el-container>
    </div>
</template>

<script>
import { asset } from '@/common/js/url'
import store from '@/store/index'

export default {
    data() {
        return {
            contacts_info: store.state.platform.platform_info.contacts
        }
    },
    methods: {
        asset(path) {
            return asset(path)
        }
    }
}
</script>

<style scoped lang="scss">
.el-header,
.el-footer {
    background-color: #b3c0d1;
    color: #333;
    text-align: center;
    line-height: 60px;
}

.el-main {
    background-color: #e9eef3;
    color: #333;
    height: 450px;
}
</style>